package com.zwy.constants;

/**
 * redis常量 设定redis缓存的key头
 * @author zwy
 * @version 1.0
 * @description: RedisConst
 * @date 2025/9/18 14:26
 */
public class RedisConst {
    /**
     * 令牌白名单缓存key头
     * 用户登录所创建的令牌白名单缓存key头
     */
    public static final String JWT_WHITE_LIST = "jwt:white:list:";

    /**
     * 文章收藏数
     */
    public static final String ARTICLE_FAVORITE_COUNT = "article:count:favorite:";
    /**
     * 文章点赞数
     */
    public static final String ARTICLE_LIKE_COUNT = "article:count:like:";
    /**
     * 文章评论数
     */
    public static final String ARTICLE_COMMENT_COUNT = "article:count:comment:";

    /**
     * 文章访问数
     */
    public static final String ARTICLE_VISIT_COUNT = "article:count:visit:";

    /**
     * 分隔符
     */
    public static final String SEPARATOR = ":";
    /**
     * 文章访问量新增间隔时间，15分钟,单位秒
     */
    public static final Integer ARTICLE_VISIT_COUNT_INTERVAL = 15 * 60;
    /**
     * 注册邮箱验证码
     */
    public static final String VERIFY_CODE = "verifyCode:";
    /**
     * 邮箱验证码过期时间
     */
    public static final Integer VERIFY_CODE_EXPIRATION = 5;
    /**
     * 注册
     */
    public static final String REGISTER = "register";
    /**
     * 缓存黑名单--uid
     */
    public static final String BLACK_LIST_UID_KEY = "blackList:uid:";

    /**
     * 缓存黑名单--ip
     */
    public static final String BLACK_LIST_IP_KEY = "blackList:ip:";

}
